using UnityEngine;
using System.Collections;

public class WarnMessage : MonoBehaviour
{

	// Use this for initialization
	void Start ()
	{
		GetComponent<UILabel> ().depth = 100;
		transform.localPosition = Vector3.zero;
		transform.localScale = new Vector3 (0.08f, 0.1f);

	}
	
	// Update is called once per frame
	void Update ()
	{
	
	}

	public void DestroyThis(){
		Destroy (gameObject);
	}

	public void TextLabel(string strText){
		GetComponent<UILabel> ().text = strText;
	}
}

